LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := aecore
LOCAL_SRC_FILES := $(LOCAL_PATH)/../../libs/libaecore.a
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../../AECoreLib/include
include $(PREBUILT_STATIC_LIBRARY)

include $(CLEAR_VARS)

AE_CPP_PATH := ../../../../src
LOCAL_MODULE := AEngine
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../../../../AECoreLib/include $(LOCAL_PATH)/../../../../include
LOCAL_STATIC_LIBRARIES := aecore

LOCAL_CFLAGS := -DANDROID_NDK -DAE_DLLEXPORTS -DAEDEBUG -DAE_USEMEMORYMANAGER -DUSE_GLES_1 -mfpu=neon -Wall -Wno-sign-compare -Wno-reorder

LOCAL_SRC_FILES := \
	$(AE_CPP_PATH)/geometry/containment/AEBoundingBox.cpp \
	$(AE_CPP_PATH)/geometry/containment/AEBoundingSphere.cpp \
	$(AE_CPP_PATH)/resource/AEResource.cpp \
	$(AE_CPP_PATH)/resource/AEResourceManager.cpp \
	$(AE_CPP_PATH)/graphics/AERenderNode.cpp \
	$(AE_CPP_PATH)/graphics/context/AERenderContext.cpp \
	$(AE_CPP_PATH)/graphics/context/AERenderContextContainer.cpp
	
LOCAL_LDLIBS    := -llog -landroid -lEGL -lGLESv1_CM -ldl -lz
include $(BUILD_SHARED_LIBRARY)

$(call import-module,android/cpufeatures)

